<?php echo $this->headLink()->appendStylesheet(MYPATH.'/css/global.css') ?>
<?php echo $this->headScript()->prependFile (MYPATH.'/js/framework/jquery.js') ?>
<?php echo $this->headScript()->appendFile(MYPATH.'/js/common.js'); ?>


<table align="center" width="80%">
	<tr>
		<td colspan="3">
			<div id="banner">
			
				<H1>Welcome to  </H1>
				<?php 
					if ($this->session_name !=""){
						echo "Hi ".$this->session_name."<br>" ;
					}else{
						echo "<a href='".MYPATH."/user/login'>login</a> ";
					}
				?>				
				<a href='/public/user/logout'>logout</a>
			</div>			
		</td>
	</tr>
	<tr>
		<td align="left">
			<div id="left_menu">
				<?php 
					if ($this->session_name !=""){
						echo "<a href='".MYPATH."/products/add'>Them ao dai</a> ";
					}
				?>	
			</div>
		</td>
		<td align="center">
			<div id="content">
				<?php echo $this->layout()->content; ?>
			</div>			
		</td>
		<td align="right">
			<div id="right_menu"></div>			
		</td>		
	</tr>
	<tr>
		<td colspan="3" align="center">
			<div id="footer">
				<a id="about_me" href= MYPATH ."/introduce/index"> About me</a>
				This is footer
			</div>
		</td>
	</tr>
</table>
